import 'package:aero_frisbee/app/model/login_respose_model/user_info_model.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

part 'af_post_comment_model.freezed.dart';
part 'af_post_comment_model.g.dart';

@freezed
class AfPostCommentModel with _$AfPostCommentModel {
  factory AfPostCommentModel({
    @Default('') String content,
    UserInfoModel? userInfo,
    @Default(false) @JsonKey(name: 'is_like') bool isLike,
  }) = _AfPostCommentModel;

  factory AfPostCommentModel.fromJson(Map<String, dynamic> json) =>
      _$AfPostCommentModelFromJson(json);
}
